package com.cdcas;

import java.util.Set;
import java.util.TreeSet;

public class Book2Test {
    public static void main(String[] args) {
        Set<Book2> books = new TreeSet<>();
        books.add(new Book2("python","aa",190));
        books.add(new Book2("java","java",100));
        books.add(new Book2("C","c",120));
        books.add(new Book2("C++","y",100));
        books.forEach(System.out::println);
    }
}
